import { Component } from '@angular/core';


@Component({
  selector: 'click-me',
  template: `
    <button (click)="onClickMe()">Click Me!</button>
    {{clickMessage}}`
})

export class ClickMeComponent {
  clickMessage = '';
  onClickMe() {
    this.clickMessage = 'you are my hero';
  }
}
